<?php

$msgbody .=  "
				<tr align='left'>
			         <td align='left' colspan='2'>
			             <h2>"
						 	.DisplayLookupValue("tblTitle","Title",$cboTitle)
							."&nbsp;".$txtFirstName."&nbsp;".$txtSurname."&nbsp;
						 </h2>
			
					 </td>
			     </tr>

			     <tr>
			         <td align='left'>
						 <b>Contact Details :</b>
			         </td>
			         <td align='left'>
			             ".$txtAddress1."
			         </td>
			     </tr>
			";
			
				if($txtAddress2){
					$msgbody .=  "
					     <tr>
					         <td align='left'>
					             <!-- <b>Address Line 2 : </b> -->
								 &nbsp;
					         </td>
					         <td align='left'>
					             ".$txtAddress2."
					         </td>
					     </tr>
					";
				}

			$msgbody .=  "
			     <tr>
			         <td align='left'>
			             <!-- <b>Town : </b> -->
						 &nbsp;
			         </td>
			         <td align='left'>
			             ".$txtCity."
			         </td>
			     </tr>

			     <tr>
			         <td align='left'>
			             <!-- <b>County : </b> -->
						 &nbsp;
			         </td>
			         <td align='left'>
			             ".$txtRegion."
			         </td>
			     </tr>

			     <tr>
			         <td align='left'>
			             <!-- <b>Post Code : </b> -->
						 &nbsp;
			         </td>
			         <td align='left'>
			             ".$txtPostalCode."
			         </td>
			     </tr>

			     <tr align='left'>
			         <td align='left'>
			             <!-- <b>Country : </b> -->
						 &nbsp;
			         </td>
			         <td align='left'>
			             ".DisplayLookupValue("tblCountry","Country",$cboCountry)."
			         </td>
			     </tr>
				 
				 <tr>
				 	<td colspan='2'><img src='./images".SITE_SUFFIX."/space.gif' height='5' border='0' alt=''></td>
				 </tr>

			     <tr>
			         <td align='left'>
			             <!-- <b>Phone Number : </b> -->
						 &nbsp;
			         </td>
			         <td align='left'>
			             <b>T:</b>&nbsp;".$txtPhone."
			         </td>
			     </tr>
			";
			
				if($txtFax){
					$msgbody .=  "
					     <tr>
					         <td align='left'>
					             <b>&nbsp;</b>
					         </td>
					         <td align='left'>
					             <b>M:</b>&nbsp;".$txtFax."
					         </td>
					     </tr>
					";
				}
				
				if($myrow[Actual_FAX]){
					$msgbody .=  "
		     		<tr>
		         		<td align='left'>
		             		<!-- <b>Fax Number : </b> -->&nbsp;
		         		</td>
		         		<td align='left'>
		             		<b>F:</b>&nbsp;".$myrow[Actual_FAX]."
		         		</td>
		     		</tr>";
				}
			
			$msgbody .=  "
				 <tr>
				 	<td colspan='2'><img src='./images".SITE_SUFFIX."/space.gif' height='5' border='0' alt=''></td>
				 </tr>
			";
				if($txtEmail){
					$msgbody .=  "
					     <tr>
					         <td align='left'>
					             <b>Email Address : </b>
								 &nbsp;
					         </td>
					         <td align='left'>
							 	".$txtEmail."
					         </td>
					     </tr>
					";
				}
				
			 
			
			if(($SHOP_TYPE == "Trade") && ($_SESSION['sesUserType'] != "staff"))
			{
				//omit password
			}
			else
			{
			$msgbody .=  "
			 	  <tr>
			         <td align='left'>
			             <b>Password : </b>
						 &nbsp;
			         </td>
			         <td align='left'>
			             ".$txtPassword."
			         </td>
			     </tr>";
				if($SHOP_TYPE == "Trade"){
					
				/*
				 *  1  	*Permanent
				 *	2 	1
				 *  3 	7
				 *  4 	30
				 *  5 	0
				 */
					switch ($cboValidFor){
						case 4:
							$strValidFor = "in 30 days";
							break;
						
						case 3:
							$strValidFor = "in 7 days";
							break;
						
						case 2:
							$strValidFor = "in 1 day";
							break;
						
						case 1:
							$strValidFor = "Never (permanent)"; 
							break;

					}
					$msgbody .=  "
					<tr>
			         	<td align='left'>
			             	<b>Password Expires: </b>
						 	&nbsp;
			         	</td>
			         	<td align='left'>
			             	".$strValidFor."
			         	</td>
			     	</tr>";	
				}
			}
				 
			/* 
			$msgbody .=  "
			    <tr>
			         <td align='left'>
			             <a href='http://$SERVER_NAME/" . ScreenURL("EnterCustomer") . "'>
			             <img src='http://$SERVER_NAME/images".SITE_SUFFIX."/update.gif' border='0' alt='Update' align='middle'></a>
			         </td>
			         <td align='right'>
					 	&nbsp;
			         </td>
		    </tr>";
			*/


?>